package com.google.code.alpaca.prototype.server;

import net.customware.gwt.dispatch.server.guice.ActionHandlerModule;

import com.google.code.alpaca.prototype.handler.DeleteMessageHandler;
import com.google.code.alpaca.prototype.handler.GetAllMessagesHandler;
import com.google.code.alpaca.prototype.handler.SaveMessageHandler;
import com.google.code.alpaca.prototype.rpc.MessageActions.DeleteMessageAction;
import com.google.code.alpaca.prototype.rpc.MessageActions.GetAllMessagesAction;
import com.google.code.alpaca.prototype.rpc.MessageActions.SaveMessageAction;

/**
 * @author Zhendong Tan
 * 
 */
public class ActionHandlerConfigModule extends ActionHandlerModule {

	@Override
	protected void configureHandlers() {
		bindHandler(GetAllMessagesAction.class, GetAllMessagesHandler.class);
		bindHandler(DeleteMessageAction.class, DeleteMessageHandler.class);
		bindHandler(SaveMessageAction.class, SaveMessageHandler.class);
	}

}
